<?php
header('content-type:text/html;charset=utf-8');
//引入功能函数文件
require './public_function.php';
//初始化数据库
$link=dbInit();
//获取要编辑的员工的id
$e_id = isset($_GET['e_id']) ? ($_GET['e_id']) : 0;
if(isset($e_id)){
    $sql = "delete from `emp_info` where e_id =$e_id";
    $query = mysqli_query($link,$sql);
}
define('APP','itcast');
header('Location:showlist.php');